package com.jihui.jihuipicturebackend.controller;

import com.jihui.jihuipicturebackend.common.BaseResponse;
import com.jihui.jihuipicturebackend.common.ResultUtils;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author jihui
 * @date 2024/12/24 23:52
 */
@RestController
@RequestMapping("/")
@Api(tags = "健康检查接口")
public class MainController {

    /**
     * 健康检查接口
     * @return
     */
    @GetMapping("/health")
    @ApiOperation(value = "健康检查接口")
    public BaseResponse<String> health(){
        return ResultUtils.success("ok");
    }
}
